package com.dd.cloud.user.service.pres;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.common.vo.PageReq;
import com.dd.cloud.user.entity.phar.AuxiliaryMaterialSetting;
import com.dd.cloud.user.entity.phar.AuxiliaryMaterialSettingRecord;
import com.dd.cloud.user.req.phar.AddAuxiliarySettingReq;
import com.dd.cloud.user.req.phar.AuxiliarySettingRecordReq;
import com.dd.cloud.user.req.phar.AuxiliarySettingReq;
import com.dd.cloud.user.req.phar.UpdateAuxiliarySettingReq;

/**
 * <p>
 * 辅料设置 服务类
 * </p>
 *
 * @author czg
 * @since 2023-06-06
 */
public interface IAuxiliaryMaterialSettingService extends IService<AuxiliaryMaterialSetting> {

    /**
     * 查询辅料设置列表
     *
     * @param req
     * @return Page<AuxiliaryMaterialSetting>
     */
    Page<AuxiliaryMaterialSetting> getAuxiliaryMaterialSettingPage(AuxiliarySettingReq req);

    /**
     * 查询辅料设置详情
     *
     * @param id
     * @return AuxiliaryMaterialSetting
     */
    AuxiliaryMaterialSetting getAuxiliaryDetail(Integer id);

    /**
     * 设置辅料状态
     *
     * @param id
     * @param status
     */
    void updateAuxiliaryStatus(Integer id, Integer status);

    /**
     * 添加辅料设置
     *
     * @param addAuxiliarySettingReq
     */
    void addAuxiliarySetting(AddAuxiliarySettingReq addAuxiliarySettingReq);

    /**
     * 编辑辅料设置
     */
    void updateAuxiliarySetting(UpdateAuxiliarySettingReq updateAuxiliarySettingReq);

    /**
     * 辅料记录
     *
     * @param auxiliarySettingReq
     */
    IPage<AuxiliaryMaterialSettingRecord> getRecord(AuxiliarySettingRecordReq auxiliarySettingReq);

    /**
     * 查询蜂蜜价格
     *
     * @return AuxiliaryMaterialSetting
     * @param pharId
     */
    AuxiliaryMaterialSetting queryFeePrice(Integer pharId);
}
